<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('导入工资条')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-payslip-add" enctype="multipart/form-data" contentType="multipart/form-data">
            <div class="form-group">    
                <label class="col-sm-3 control-label">年：</label>
                <div class="col-sm-8">
                    <input name="year" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">月：</label>
                <div class="col-sm-8">
                    <input name="month" class="form-control" type="text">
                </div>
            </div>



            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">下拉框：</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="userName">
                            <option>思思</option>
                            <option>莉莉</option>
                            <option>小练</option>
                            <option>爱情</option>
                            <option>欢欢</option>
                            <option>小婧</option>
                            <option>小叶</option>
                            <option>菲菲</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">文件：</label>
                <div class="col-sm-8">
                    <input name="file" class="form-control" type="file">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "store/payslip"
        $("#form-payslip-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.importExcelData(prefix + "/import", new FormData($('#form-payslip-add')[0]));
            }
        }
    </script>
</body>
</html>